<HTML XMLns="http://www.w3.org/1999/xHTML">
<head>
<title>A Simple Ajax Example</title>
<link REL="stylesheet" TYPE="text/css" HREF="style.css" /> 
<script type="text/javascript" src="xhr.js"></script>
<script type="text/javascript" src="simpleajax.js"></script>
</head>
<body>
<H1>Fetching data with Ajax</H1>
<form>
<br>
<table>
	<tr>
		<th>User name:</th>
		<td><input type="text" name="namefield" /></td>
	</tr>
	<tr>
		<th>Password:</th>
		<td><input type="password" name="pwdfield" /></td>
	</tr>
</table>
</label> <input name="submit" type="button"
	onclick="getData('data.php','targetDiv', namefield.value, pwdfield.value)"
	value="Fetch from server"></form>
<div id="targetDiv">
<p>The fetched data will go here.</p>
</div>
</body>
</HTML>